<nz-layout>
    <nz-header class="header">
        <div class="logo">
            <span class="top">治具製作智能管理系統</span>
        </div>
        <div class="infom">
            <div class="time">
                <span class="ymd">{{today | date:'yyyy-MM-dd'}}</span>
                <span class="w"> {{week}}</span>
            </div>
            <div class="name">
                <span class="ch">{{name}}</span>
                <span class="en"> {{name_PY}}</span>
                <span class="id"> {{job_no}}</span>
            </div>
            <div class="department">
                <span class="number">{{department}}</span>
                <span class="as"> {{department_abb}}</span>
                <span class="role"> 賬戶角色：{{role}}</span>
                <a class="exit" type="button" (click)="(cancel())">  &nbsp;注销</a>
            </div>
        </div>
    </nz-header>
    <nz-layout>
        <nz-sider class="left-menu" style="flex:0 0 150px;">
            <ul class="sider-menu" >
                <li class="num1">
                    <a class="num1_a" [routerLink]="[ '/home/audit']" routerLinkActive="active" *ngIf="level_choose[0]">主管審核</a>
                </li>
                <li class="num1">
                    <a class="num1_a" [routerLink]="[ '/home/empDesign']" routerLinkActive="active" *ngIf="level_choose[1]">治具設計</a>
                </li>
                <li class="num1">
                    <a class="num1_a" [routerLink]="[ '/home/empProgram']" routerLinkActive="active" *ngIf="level_choose[2]">治具編程</a>
                </li>
                <li class="num1">
                    <a class="num1_a" [routerLink]="[ '/home/empProcess']" routerLinkActive="active" *ngIf="level_choose[3]">治具加工</a>
                </li>
                <li class="num1">
                    <a class="num1_a" [routerLink]="[ '/home/empZhijian']" routerLinkActive="active"  *ngIf="level_choose[4]">品質檢驗</a>
                </li>
                <li class="num1">
                    <a class="num1_a" [routerLink]="[ '/home/empJiagong']" routerLinkActive="active" *ngIf="level_choose[5]">二次加工</a>
                </li>
                <li class="num1">
                  <a class="num1_a" [routerLink]="[ '/home/empZuzhuang']" routerLinkActive="active" *ngIf="level_choose[6]">治具組裝</a>
                </li>
                <li class="num1">
                  <a class="num1_a" [routerLink]="[ '/home/empZongjian']" routerLinkActive="active" *ngIf="level_choose[7]">治具總檢</a>
                </li>
                <li class="num1">
                  <a class="num1_a" [routerLink]="[ '/home/ruku']" routerLinkActive="active" *ngIf="level_choose[8]">成品入庫</a>
                </li>
                <li class="num1">
                  <a class="num1_a" [routerLink]="[ '/home/paijian']" routerLinkActive="active" *ngIf="level_choose[9]">派件管理</a>
                </li>
                <li class="num1">
                  <a class="num1_a" [routerLink]="[ '/home/empKufang']" routerLinkActive="active" *ngIf="level_choose[10]">庫房管理</a>
                </li>
                <li class="num1">
                  <a class="num1_a" [routerLink]="[ '/home/lingliao']" routerLinkActive="active" *ngIf="level_choose[11]">申請領料</a>
                </li>
                <li class="num1">
                  <a class="num1_a" [routerLink]="[ '/home/kanbanManage']" routerLinkActive="active" *ngIf="level_choose[12]">看板管理</a>
                </li>
                <li class="num1">
                  <a class="num1_a" [routerLink]="['/home/baobiao']" routerLinkActive="active" *ngIf="level_choose[13]">報表下載</a><!--權限-->
                </li>
                <li class="num1">
                  <a class="num1_a" [routerLink]="['/home/paiban']" routerLinkActive="active" *ngIf="level_choose[14]">自動排班</a><!--權限-->
                </li>
                <li class="num1">
                  <a class="num1_a" [routerLink]="['/home/permissions']" routerLinkActive="active" *ngIf="level_choose[15]">系統設置</a><!--權限-->
                </li>
            </ul>
        </nz-sider>
        <nz-content class="inner-layout">
            <router-outlet></router-outlet>
        </nz-content>
    </nz-layout>
</nz-layout>
